package com.byzk.invoice;

import com.byzk.invoice.xml.Doc_0.Tpls.Tpl_0.Content;
import com.byzk.invoice.xml.OFD;
import com.byzk.invoice.xml.Doc_0.Annots.Annotations;
import com.byzk.invoice.xml.Doc_0.Annots.Page_0.Annotation;
import com.byzk.invoice.xml.Doc_0.DocumentRes;
import com.byzk.invoice.xml.Doc_0.DocumentXml;
import com.byzk.invoice.xml.Doc_0.PublicRes;
import com.byzk.invoice.xml.Doc_0.Tags.CustomTags;

/**
 * 开票测试.
 *
 * @author 康鹏 2020-05-20
 */
public class InvoiceTest {

    public static void main(String[] args) {

        String invoiceFile = "E:\\TOOL_Project\\InvoiceCreateTool\\invoiceFile";
        createInvoice(invoiceFile);

    }

    private static void createInvoice(String invoiceFile) {
        try {
            OFD.createOFDXml(invoiceFile);
            PublicRes.createPublicResXml(invoiceFile);
            DocumentRes.createDocumentResXml(invoiceFile);
            DocumentXml.createDocumentXml(invoiceFile);
            Annotations.createAnnotationsXml(invoiceFile);
            Annotation.createAnnotationXml(invoiceFile);
            //Attachments.createAttachmentsXml(invoiceFile);
            //CustomTags.createCustomTagsXml(invoiceFile);
            Content.createContentXml(invoiceFile);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
